public class MethodDemo4 {
    public static int produceCar(int month) {
        int i = 15000;
        int sum = 0;
        if (month == 1) {

            sum = 15000;
        } else {

            sum =( (produceCar(month - 1) - 3000)) * 2;

        }
        return sum;
    }

    public static void main(String[] args) {
        int sum = 0;
//        sum = produceCar(4);
//        System.out.println(sum);
        for (int i = 1; i <= 12; i++) {
            sum = sum + produceCar(i);

        }
        System.out.println(sum);
    }
}
